<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--引入jstl--%>
<%@include file="common/tag.jsp" %>

<!DOCTYPE html>
<html>
<head>
    <title>秒杀详情</title>
    <%@include file="common/head.jsp" %>
</head>
<body>
    <!--页面显示部分-->
    <div class="container">
    	<div class="panel panel-default text-center">
    		<div class="panel-heading">
                ${seckill.name}
            </div>
    	    <div class="panel-body">
				<!-- 显示time图标 -->
				<span class="glyphicon glyphicon-time"></span>
				<!-- 展示倒计时 -->
				<span class="glyphicon" id="seckill-box"></span>
            </div>
        </div>
    </div>
	<!-- 登录弹出层 -->
	<div class="modal fade" id="killPhoneModal">
	   <div class="modal-dialog">
	      <div class="modal-content">
	         <div class="modal-header">
<!-- 	            <button type="button" class="close" 
	               data-dismiss="modal" aria-hidden="true">
	                  &times;
	            </button> -->
	            <h3 class="modal-title text-center">
	               <span class="glyphicon glyphicon-phone"></span>
	               秒杀电话:
	            </h3>
	         </div>
	         <div class="modal-body">
	         	<div class="row">
	         		<div class="col-xs-8 col-xs-offset-2">
						<input type="text" name="killPhone" id="killPhoneKey" placeholder="填写手机号" class="form-control">	
	         		</div>
	         	</div>
	         </div>
	         <div class="modal-footer">
	         	<!-- 验证信息 -->
	         	<span id="killPhoneMessage" class="glyphicon"></span>
	            <button id="killPhoneBtn" type="button" class="btn btn-success">
	               <span class="glyphicon glyphicon-phone"></span>
	               Submit
	            </button>
	         </div>
	      </div><!-- /.modal-content -->
	</div><!-- /.modal -->

	<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
	<script src="${pageContext.request.contextPath}/asset/js/jquery.min.2.0.0.js"></script>
	<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
	<script src="${pageContext.request.contextPath}/asset/bootstrap/3.3.0/bootstrap.min.js"></script>
	<!-- jquery cookie -->
	<script src="//cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.js"></script>
	<!-- jquery countDown 插件 -->
	<script src="//cdn.bootcss.com/jquery.countdown/2.1.0/jquery.countdown.min.js"></script>
	<!-- 交互逻辑 -->
	<script type="text/javascript" src="${pageContext.request.contextPath}/asset/script/seckill.js"></script>
	
	<script type="text/javascript">
		$(function(){
			//使用EL表达是传递参数
			seckill.detail.init({
				seckillId : ${seckill.seckillId} ,
				startTime : ${seckill.startTime.time} ,
				endTime : ${seckill.endTime.time}
			});
		});
	</script>
</body>
</html>
